package com.example.springbootshiro.services;

import com.example.springbootshiro.bean.User;
import com.example.springbootshiro.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServicesImpl implements UserServices{
    @Autowired
    UserMapper userMapper;
    @Override
    public User selectByname(String name) {
        return userMapper.selectByname(name);
    }

    @Override
    public List<User> selectAll() {
        return userMapper.selectAll();
    }
}
